package com.cloudfun.campusshare.common.model.vo;

import com.cloudfun.campusshare.common.constant.CouponType;
import com.cloudfun.campusshare.common.constant.UserCouponStatus;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Created by CodeGenerator on 2020/05/29
 */
@Data
@ApiModel("用户领取的优惠券列表VO")
public class UserCouponListVO {

    @ApiModelProperty("主键uuid")
    private String id;

    @ApiModelProperty("优惠券id")
    private String couponId;

    @ApiModelProperty("代金券编号")
    private String couponNo;

    @ApiModelProperty("客户Id")
    private String userId;

    @ApiModelProperty("客户手机号")
    private String userPhone;

    @ApiModelProperty("洗衣点id")
    private String washPointId;

    @ApiModelProperty("洗衣点名称")
    private String washPointName;

    @ApiModelProperty("优惠券类型")
    private CouponType couponType;

    @ApiModelProperty("金额")
    private String amount;

    @ApiModelProperty("使用开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty("使用结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime endTime;

    @ApiModelProperty("状态")
    private UserCouponStatus status;

    @ApiModelProperty("使用时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime useTime;

    @ApiModelProperty("订单id")
    private String orderId;

    @ApiModelProperty("订单号")
    private String orderNo;

    @ApiModelProperty("发券人id")
    private String issuerId;

    @ApiModelProperty("发券人名称")
    private String issuerName;

}